//
//  UserTableViewCell.m
//  DouBan
//
//  Created by dllo on 16/6/25.
//  Copyright © 2016年 zuzhiming. All rights reserved.
//

#import "UserTableViewCell.h"

@interface UserTableViewCell ()

@property (nonatomic, retain) UILabel *separateLine;

@end

@implementation UserTableViewCell

- (void)dealloc
{
    [_contentLabel release];
    [_separateLine release];
    [super dealloc];
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.contentLabel = [[UILabel alloc] init];
        [self.contentView addSubview:_contentLabel];
        [_contentLabel release];
        
        self.separateLine = [[UILabel alloc] init];
        [self.contentView addSubview:_separateLine];
        [_separateLine release];
    }
    return self;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    self.contentLabel.font = [UIFont systemFontOfSize:22.0f];
    self.contentLabel.frame = self.contentView.bounds;
    
    self.separateLine.backgroundColor = [UIColor lightGrayColor];
    self.separateLine.frame = CGRectMake(0, self.contentView.bounds.size.height - 1, SCREEN_WIDTH, 1);
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
